]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extension-tool: Remove old compatibility code
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 3 Dec 2023 11:20:47 +0000 (12:20 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sun, 3 Dec 2023 11:25:06 +0000 (12:25 +0100)
Since GNOME 44, extension schemas are compiled at install time.

At the time GNOME 46 is released, this will be all supported versions,
so start relying on it and drop the old compatibility
code.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3042>

subprojects/extensions-tool/src/command-pack.c
subprojects/extensions-tool/src/meson.build

index 4c07bf3ad89971d3f908884329e4e2ea61d85e9d..9575c21ea6537d35d0a47888a05b008873596653 100644 (file)
@@ -138,7 +138,6 @@ extension_pack_add_schemas (ExtensionPack  *pack,
 {
   g_autoptr (GSubprocess) proc = NULL;
   g_autoptr (GFile) dstdir = NULL;
-  g_autofree char *dstpath = NULL;
   char **s;
 
   if (!ensure_tmpdir (pack, error))
@@ -163,17 +162,6 @@ extension_pack_add_schemas (ExtensionPack  *pack,
         return FALSE;
     }
 
-#if MAJOR_VERSION >= 46
-#error "Outdated compatibility code, please remove"
-#else
-  dstpath = g_file_get_path (dstdir);
-  proc = g_subprocess_new (G_SUBPROCESS_FLAGS_STDERR_SILENCE, error,
-                           "glib-compile-schemas", "--strict", dstpath, NULL);
-
-  if (!g_subprocess_wait_check (proc, NULL, error))
-    return FALSE;
-#endif
-
   g_hash_table_insert (pack->files,
                        g_strdup ("schemas"), g_steal_pointer (&dstdir));
   return TRUE;
index f7bda8aff927f4d42dcc546fbf439416d8cff2b5..a855fef973498fa91e0e5f7458dc97e814ac3d7f 100644 (file)
@@ -1,7 +1,6 @@
 config_h = configuration_data()
 config_h.set_quoted('GETTEXT_PACKAGE', package_name)
 config_h.set_quoted('VERSION', meson.project_version())
-config_h.set('MAJOR_VERSION', meson.project_version().split('.')[0])
 config_h.set_quoted('LOCALEDIR', localedir)
 config_h.set('HAVE_BIND_TEXTDOMAIN_CODESET', cc.has_function('bind_textdomain_codeset'))
 configure_file(